LINE_NUM = 10
index = 0
for i in range(100,1001):
    if i%5==0 and i%6==0:
        print(format(i,"<10d"),end=' ')
        index += 1
        if index % 10 == 0:
            print()
